.class public Les/qj0;
.super Ljava/lang/Object;
.source "AdDownloadDialogManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/qj0$c;
    }
.end annotation


# static fields
.field private static final f:Ljava/lang/String; = "qj0"

.field private static g:Les/qj0;


# instance fields
.field private a:Ljava/util/concurrent/CopyOnWriteArrayList;
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/CopyOnWriteArrayList<",
            "Les/tj0;",
            ">;"
        }
    .end annotation
.end field

.field private b:Z

.field private c:Ljava/lang/String;

.field private d:Ljava/util/concurrent/CopyOnWriteArrayList;
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/CopyOnWriteArrayList<",
            "Les/tj0;",
            ">;"
        }
    .end annotation
.end field

.field private e:Les/rj0;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Les/qj0;->b:Z

    .line 3
    new-instance v0, Les/rj0;

    invoke-direct {v0}, Les/rj0;-><init>()V

    iput-object v0, p0, Les/qj0;->e:Les/rj0;

    const-string v1, "sp_ad_install_back_dialog"

    const-string v2, "key_uninstalled_list"

    .line 4
    invoke-virtual {v0, v1, v2}, Les/rj0;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object v0

    iput-object v0, p0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    .line 5
    iget-object v0, p0, Les/qj0;->e:Les/rj0;

    const-string v1, "sp_name_installed_app"

    const-string v2, "key_installed_list"

    invoke-virtual {v0, v1, v2}, Les/rj0;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/util/concurrent/CopyOnWriteArrayList;

    move-result-object v0

    iput-object v0, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    return-void
.end method

.method public static a()Les/qj0;
    .locals 1

    .line 2
    sget-object v0, Les/qj0;->g:Les/qj0;

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Les/qj0;

    invoke-direct {v0}, Les/qj0;-><init>()V

    sput-object v0, Les/qj0;->g:Les/qj0;

    .line 4
    :cond_0
    sget-object v0, Les/qj0;->g:Les/qj0;

    return-object v0
.end method

.method private a(Landroid/content/Context;Les/nj0;)V
    .locals 9

    if-nez p2, :cond_0

    return-void

    .line 91
    :cond_0
    :try_start_0
    invoke-virtual {p2}, Les/nj0;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Les/zk0;->b(Landroid/content/Context;Ljava/lang/String;)Les/wj0;

    move-result-object v0

    .line 92
    invoke-virtual {v0}, Les/wj0;->a()I

    move-result v0

    const/4 v1, 0x3

    if-eq v0, v1, :cond_1

    .line 93
    invoke-static {}, Les/lk0;->d()Les/qi0;

    move-result-object v2

    const/4 v3, 0x4

    .line 94
    invoke-virtual {p2}, Les/nj0;->s()Les/lj0;

    move-result-object v5

    const-string v6, "\u5e94\u7528\u6253\u5f00\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u662f\u5426\u5b89\u88c5"

    const/4 v7, 0x0

    const/4 v8, 0x1

    move-object v4, p1

    .line 95
    invoke-interface/range {v2 .. v8}, Les/qi0;->a(ILandroid/content/Context;Les/zi0;Ljava/lang/String;Landroid/graphics/drawable/Drawable;I)V

    .line 96
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string v0, "market_openapp_failed"

    invoke-virtual {p1, v0, p2}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V

    goto :goto_0

    .line 97
    :cond_1
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string v0, "market_openapp_success"

    invoke-virtual {p1, v0, p2}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :goto_0
    return-void
.end method

.method private a(Landroid/content/Context;Les/tj0;Les/qj0$c;Z)V
    .locals 10

    .line 52
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    iget-wide v1, p2, Les/tj0;->b:J

    invoke-virtual {v0, v1, v2}, Les/vj0;->d(J)Les/nj0;

    move-result-object v0

    if-nez v0, :cond_0

    .line 53
    invoke-static {}, Les/cl0;->b()V

    return-void

    .line 54
    :cond_0
    invoke-static {}, Les/lk0;->d()Les/qi0;

    move-result-object v1

    new-instance v2, Les/ej0$b;

    invoke-direct {v2, p1}, Les/ej0$b;-><init>(Landroid/content/Context;)V

    if-eqz p4, :cond_1

    const-string v3, "\u5e94\u7528\u5b89\u88c5\u786e\u8ba4"

    goto :goto_0

    :cond_1
    const-string v3, "\u9000\u51fa\u786e\u8ba4"

    .line 55
    :goto_0
    invoke-virtual {v2, v3}, Les/ej0$b;->a(Ljava/lang/String;)Les/ej0$b;

    const/4 v9, 0x1

    new-array v3, v9, [Ljava/lang/Object;

    iget-object v4, p2, Les/tj0;->e:Ljava/lang/String;

    .line 56
    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_2

    const-string v4, "\u521a\u521a\u4e0b\u8f7d\u7684\u5e94\u7528"

    goto :goto_1

    :cond_2
    iget-object v4, p2, Les/tj0;->e:Ljava/lang/String;

    :goto_1
    const/4 v5, 0x0

    aput-object v4, v3, v5

    const-string v4, "%1$s\u4e0b\u8f7d\u5b8c\u6210\uff0c\u662f\u5426\u7acb\u5373\u5b89\u88c5\uff1f"

    .line 57
    invoke-static {v4, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Les/ej0$b;->b(Ljava/lang/String;)Les/ej0$b;

    const-string v3, "\u7acb\u5373\u5b89\u88c5"

    .line 58
    invoke-virtual {v2, v3}, Les/ej0$b;->c(Ljava/lang/String;)Les/ej0$b;

    if-eqz p4, :cond_3

    const-string p4, "\u6682\u4e0d\u5b89\u88c5"

    goto :goto_2

    :cond_3
    new-array p4, v9, [Ljava/lang/Object;

    .line 59
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v4

    iget v4, v4, Landroid/content/pm/ApplicationInfo;->labelRes:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    aput-object v3, p4, v5

    const-string v3, "\u9000\u51fa%1$s"

    invoke-static {v3, p4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p4

    .line 60
    :goto_2
    invoke-virtual {v2, p4}, Les/ej0$b;->d(Ljava/lang/String;)Les/ej0$b;

    .line 61
    invoke-virtual {v2, v5}, Les/ej0$b;->a(Z)Les/ej0$b;

    iget-object p4, p2, Les/tj0;->g:Ljava/lang/String;

    .line 62
    invoke-static {p1, p4}, Les/cl0;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object p4

    invoke-virtual {v2, p4}, Les/ej0$b;->a(Landroid/graphics/drawable/Drawable;)Les/ej0$b;

    new-instance p4, Les/qj0$a;

    move-object v3, p4

    move-object v4, p0

    move-object v5, v0

    move-object v6, p1

    move-object v7, p2

    move-object v8, p3

    invoke-direct/range {v3 .. v8}, Les/qj0$a;-><init>(Les/qj0;Les/nj0;Landroid/content/Context;Les/tj0;Les/qj0$c;)V

    .line 63
    invoke-virtual {v2, p4}, Les/ej0$b;->a(Les/ej0$c;)Les/ej0$b;

    .line 64
    invoke-virtual {v2, v9}, Les/ej0$b;->a(I)Les/ej0$b;

    .line 65
    invoke-virtual {v2}, Les/ej0$b;->a()Les/ej0;

    move-result-object p1

    .line 66
    invoke-interface {v1, p1}, Les/qi0;->b(Les/ej0;)Landroid/app/Dialog;

    .line 67
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string p3, "backdialog_show"

    invoke-virtual {p1, p3, v0}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V

    .line 68
    iget-object p1, p2, Les/tj0;->d:Ljava/lang/String;

    iput-object p1, p0, Les/qj0;->c:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Les/qj0;Landroid/content/Context;Les/nj0;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1, p2}, Les/qj0;->a(Landroid/content/Context;Les/nj0;)V

    return-void
.end method

.method private a(Landroid/content/Context;Les/tj0;)Z
    .locals 7

    .line 75
    sget-object v0, Les/qj0;->f:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "showOpenAppDialog appname:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p2, Les/tj0;->e:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, ",pgk:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p2, Les/tj0;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Les/bl0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V

    .line 76
    invoke-static {}, Les/vj0;->c()Les/vj0;

    move-result-object v0

    iget-wide v1, p2, Les/tj0;->b:J

    invoke-virtual {v0, v1, v2}, Les/vj0;->d(J)Les/nj0;

    move-result-object v0

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 77
    invoke-static {}, Les/cl0;->b()V

    return v1

    .line 78
    :cond_0
    invoke-static {}, Les/lk0;->d()Les/qi0;

    move-result-object v2

    new-instance v3, Les/ej0$b;

    invoke-direct {v3, p1}, Les/ej0$b;-><init>(Landroid/content/Context;)V

    const-string v4, "\u5df2\u5b89\u88c5\u5b8c\u6210"

    .line 79
    invoke-virtual {v3, v4}, Les/ej0$b;->a(Ljava/lang/String;)Les/ej0$b;

    new-array v4, v1, [Ljava/lang/Object;

    iget-object v5, p2, Les/tj0;->e:Ljava/lang/String;

    .line 80
    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_1

    const-string v5, "\u521a\u521a\u4e0b\u8f7d\u7684\u5e94\u7528"

    goto :goto_0

    :cond_1
    iget-object v5, p2, Les/tj0;->e:Ljava/lang/String;

    :goto_0
    const/4 v6, 0x0

    aput-object v5, v4, v6

    const-string v5, "%1$s\u5df2\u5b89\u88c5\u5b8c\u6210\uff0c\u662f\u5426\u7acb\u5373\u6253\u5f00\uff1f"

    .line 81
    invoke-static {v5, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Les/ej0$b;->b(Ljava/lang/String;)Les/ej0$b;

    const-string v4, "\u6253\u5f00"

    .line 82
    invoke-virtual {v3, v4}, Les/ej0$b;->c(Ljava/lang/String;)Les/ej0$b;

    const-string v4, "\u53d6\u6d88"

    .line 83
    invoke-virtual {v3, v4}, Les/ej0$b;->d(Ljava/lang/String;)Les/ej0$b;

    .line 84
    invoke-virtual {v3, v6}, Les/ej0$b;->a(Z)Les/ej0$b;

    iget-object p2, p2, Les/tj0;->d:Ljava/lang/String;

    .line 85
    invoke-static {p1, p2}, Les/cl0;->b(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-virtual {v3, p2}, Les/ej0$b;->a(Landroid/graphics/drawable/Drawable;)Les/ej0$b;

    new-instance p2, Les/qj0$b;

    invoke-direct {p2, p0, p1, v0}, Les/qj0$b;-><init>(Les/qj0;Landroid/content/Context;Les/nj0;)V

    .line 86
    invoke-virtual {v3, p2}, Les/ej0$b;->a(Les/ej0$c;)Les/ej0$b;

    const/4 p1, 0x2

    .line 87
    invoke-virtual {v3, p1}, Les/ej0$b;->a(I)Les/ej0$b;

    .line 88
    invoke-virtual {v3}, Les/ej0$b;->a()Les/ej0;

    move-result-object p1

    .line 89
    invoke-interface {v2, p1}, Les/qi0;->b(Les/ej0;)Landroid/app/Dialog;

    .line 90
    invoke-static {}, Les/uk0;->a()Les/uk0;

    move-result-object p1

    const-string p2, "market_openapp_window_show"

    invoke-virtual {p1, p2, v0}, Les/uk0;->a(Ljava/lang/String;Les/nj0;)V

    return v1
.end method


# virtual methods
.method public a(Landroid/content/Context;)Les/zn0;
    .locals 13

    .line 32
    invoke-static {p1}, Les/gl0;->a(Landroid/content/Context;)Les/gl0;

    move-result-object v0

    invoke-virtual {v0}, Les/gl0;->b()J

    move-result-wide v0

    .line 33
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v2

    const-string v3, "enable_miniapp_dialog"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v2

    const/4 v3, 0x0

    if-nez v2, :cond_0

    return-object v3

    .line 34
    :cond_0
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/downloader/g;->a(Landroid/content/Context;)Lcom/ss/android/socialbase/downloader/downloader/g;

    move-result-object v2

    const-string v4, "application/vnd.android.package-archive"

    invoke-virtual {v2, v4}, Lcom/ss/android/socialbase/downloader/downloader/g;->b(Ljava/lang/String;)Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_9

    .line 35
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v4

    if-eqz v4, :cond_1

    goto/16 :goto_2

    .line 36
    :cond_1
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const-wide/16 v4, 0x0

    move-wide v6, v4

    :cond_2
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_9

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Les/zn0;

    if-nez v8, :cond_3

    goto :goto_0

    .line 37
    :cond_3
    invoke-virtual {v8}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object v9

    invoke-static {p1, v9}, Les/cl0;->c(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_2

    .line 38
    invoke-virtual {v8}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Les/cl0;->a(Ljava/lang/String;)Z

    move-result v9

    if-nez v9, :cond_4

    goto :goto_0

    .line 39
    :cond_4
    new-instance v9, Ljava/io/File;

    invoke-virtual {v8}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v10}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 40
    invoke-virtual {v9}, Ljava/io/File;->lastModified()J

    move-result-wide v9

    cmp-long v11, v9, v0

    if-gez v11, :cond_5

    goto :goto_0

    .line 41
    :cond_5
    invoke-virtual {v8}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v11

    if-nez v11, :cond_6

    goto :goto_0

    .line 42
    :cond_6
    :try_start_0
    new-instance v11, Lorg/json/JSONObject;

    invoke-virtual {v8}, Les/zn0;->f1()Ljava/lang/String;

    move-result-object v12

    invoke-direct {v11, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string v12, "isMiniApp"

    .line 43
    invoke-virtual {v11, v12}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v11
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    if-nez v11, :cond_7

    goto :goto_0

    :cond_7
    cmp-long v11, v6, v4

    if-nez v11, :cond_8

    goto :goto_1

    :cond_8
    cmp-long v11, v9, v6

    if-lez v11, :cond_2

    :goto_1
    move-object v3, v8

    move-wide v6, v9

    goto :goto_0

    :catch_0
    move-exception v8

    .line 44
    invoke-virtual {v8}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_9
    :goto_2
    return-object v3
.end method

.method public a(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 18

    move-object/from16 v0, p0

    const/4 v1, 0x0

    .line 45
    :goto_0
    iget-object v2, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v2}, Ljava/util/concurrent/CopyOnWriteArrayList;->size()I

    move-result v2

    const-string v3, "key_uninstalled_list"

    const-string v4, "sp_ad_install_back_dialog"

    if-ge v1, v2, :cond_1

    .line 46
    iget-object v2, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/tj0;

    if-eqz v2, :cond_0

    .line 47
    iget-wide v5, v2, Les/tj0;->b:J

    cmp-long v2, v5, p3

    if-nez v2, :cond_0

    .line 48
    iget-object v2, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    new-instance v5, Les/tj0;

    move-object v7, v5

    move-wide/from16 v8, p1

    move-wide/from16 v10, p3

    move-wide/from16 v12, p5

    move-object/from16 v14, p7

    move-object/from16 v15, p8

    move-object/from16 v16, p9

    move-object/from16 v17, p10

    invoke-direct/range {v7 .. v17}, Les/tj0;-><init>(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v2, v1, v5}, Ljava/util/concurrent/CopyOnWriteArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;

    .line 49
    iget-object v1, v0, Les/qj0;->e:Les/rj0;

    iget-object v2, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1, v4, v3, v2}, Les/rj0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/CopyOnWriteArrayList;)V

    return-void

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 50
    :cond_1
    iget-object v1, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    new-instance v2, Les/tj0;

    move-object v7, v2

    move-wide/from16 v8, p1

    move-wide/from16 v10, p3

    move-wide/from16 v12, p5

    move-object/from16 v14, p7

    move-object/from16 v15, p8

    move-object/from16 v16, p9

    move-object/from16 v17, p10

    invoke-direct/range {v7 .. v17}, Les/tj0;-><init>(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    .line 51
    iget-object v1, v0, Les/qj0;->e:Les/rj0;

    iget-object v2, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1, v4, v3, v2}, Les/rj0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/CopyOnWriteArrayList;)V

    return-void
.end method

.method public a(Landroid/content/Context;Les/tj0;ZLes/qj0$c;)V
    .locals 1

    .line 26
    iget-object v0, p0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->clear()V

    .line 27
    invoke-direct {p0, p1, p2, p4, p3}, Les/qj0;->a(Landroid/content/Context;Les/tj0;Les/qj0$c;Z)V

    const/4 p2, 0x1

    .line 28
    iput-boolean p2, p0, Les/qj0;->b:Z

    .line 29
    invoke-static {p1}, Les/gl0;->a(Landroid/content/Context;)Les/gl0;

    move-result-object p1

    invoke-virtual {p1}, Les/gl0;->c()V

    .line 30
    iget-object p1, p0, Les/qj0;->e:Les/rj0;

    const-string p2, "sp_ad_install_back_dialog"

    const-string p3, "key_uninstalled_list"

    invoke-virtual {p1, p2, p3}, Les/rj0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 31
    sget-object p1, Les/qj0;->f:Ljava/lang/String;

    const-string p2, "tryShowInstallDialog isShow:true"

    const/4 p3, 0x0

    invoke-static {p1, p2, p3}, Les/bl0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V

    return-void
.end method

.method public a(Les/tj0;)V
    .locals 6

    if-nez p1, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 70
    :goto_0
    iget-object v1, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 71
    iget-object v1, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/tj0;

    if-eqz v1, :cond_1

    .line 72
    iget-wide v1, v1, Les/tj0;->b:J

    iget-wide v3, p1, Les/tj0;->b:J

    cmp-long v5, v1, v3

    if-nez v5, :cond_1

    return-void

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 73
    :cond_2
    iget-object v0, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    .line 74
    iget-object p1, p0, Les/qj0;->e:Les/rj0;

    iget-object v0, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    const-string v1, "sp_name_installed_app"

    const-string v2, "key_installed_list"

    invoke-virtual {p1, v1, v2, v0}, Les/rj0;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/CopyOnWriteArrayList;)V

    return-void
.end method

.method public a(Landroid/content/Context;ZLes/qj0$c;)Z
    .locals 23

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move/from16 v2, p2

    move-object/from16 v3, p3

    .line 5
    sget-object v4, Les/qj0;->f:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "tryShowInstallDialog canBackRefresh:"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 v6, 0x0

    invoke-static {v4, v5, v6}, Les/bl0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V

    .line 6
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v4

    const-string v5, "disable_install_app_dialog"

    invoke-virtual {v4, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v4

    const/4 v5, 0x1

    const/4 v7, 0x0

    if-ne v4, v5, :cond_0

    return v7

    .line 7
    :cond_0
    iget-boolean v4, v0, Les/qj0;->b:Z

    if-eqz v4, :cond_1

    return v7

    .line 8
    :cond_1
    invoke-virtual/range {p0 .. p1}, Les/qj0;->a(Landroid/content/Context;)Les/zn0;

    move-result-object v4

    if-nez v4, :cond_2

    .line 9
    iget-object v8, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v8}, Ljava/util/concurrent/CopyOnWriteArrayList;->isEmpty()Z

    move-result v8

    if-eqz v8, :cond_2

    return v7

    :cond_2
    if-eqz v4, :cond_3

    .line 10
    iget-object v8, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v8}, Ljava/util/concurrent/CopyOnWriteArrayList;->isEmpty()Z

    move-result v8

    if-eqz v8, :cond_3

    .line 11
    new-instance v6, Les/tj0;

    invoke-virtual {v4}, Les/zn0;->N0()I

    move-result v7

    int-to-long v10, v7

    const-wide/16 v12, 0x0

    const-wide/16 v14, 0x0

    invoke-virtual {v4}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object v16

    invoke-virtual {v4}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v17

    const/16 v18, 0x0

    invoke-virtual {v4}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v19

    move-object v9, v6

    invoke-direct/range {v9 .. v19}, Les/tj0;-><init>(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    invoke-virtual {v0, v1, v6, v2, v3}, Les/qj0;->a(Landroid/content/Context;Les/tj0;ZLes/qj0$c;)V

    return v5

    :cond_3
    const-wide/16 v8, 0x0

    if-eqz v4, :cond_4

    .line 13
    new-instance v8, Ljava/io/File;

    invoke-virtual {v4}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 14
    invoke-virtual {v8}, Ljava/io/File;->lastModified()J

    move-result-wide v8

    .line 15
    :cond_4
    iget-object v10, v0, Les/qj0;->a:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v10}, Ljava/util/concurrent/CopyOnWriteArrayList;->size()I

    move-result v11

    invoke-virtual {v10, v11}, Ljava/util/concurrent/CopyOnWriteArrayList;->listIterator(I)Ljava/util/ListIterator;

    move-result-object v10

    .line 16
    :cond_5
    :goto_0
    invoke-interface {v10}, Ljava/util/ListIterator;->hasPrevious()Z

    move-result v11

    if-eqz v11, :cond_9

    .line 17
    invoke-interface {v10}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Les/tj0;

    if-nez v11, :cond_6

    goto :goto_0

    .line 18
    :cond_6
    iget-object v12, v11, Les/tj0;->d:Ljava/lang/String;

    invoke-static {v1, v12}, Les/cl0;->c(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v12

    if-nez v12, :cond_5

    iget-object v12, v11, Les/tj0;->g:Ljava/lang/String;

    .line 19
    invoke-static {v12}, Les/cl0;->a(Ljava/lang/String;)Z

    move-result v12

    if-nez v12, :cond_7

    goto :goto_0

    .line 20
    :cond_7
    new-instance v7, Ljava/io/File;

    iget-object v10, v11, Les/tj0;->g:Ljava/lang/String;

    invoke-direct {v7, v10}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 21
    invoke-virtual {v7}, Ljava/io/File;->lastModified()J

    move-result-wide v12

    cmp-long v7, v12, v8

    if-ltz v7, :cond_8

    .line 22
    invoke-virtual {v0, v1, v11, v2, v3}, Les/qj0;->a(Landroid/content/Context;Les/tj0;ZLes/qj0$c;)V

    goto :goto_1

    .line 23
    :cond_8
    new-instance v7, Les/tj0;

    invoke-virtual {v4}, Les/zn0;->N0()I

    move-result v8

    int-to-long v13, v8

    const-wide/16 v15, 0x0

    const-wide/16 v17, 0x0

    invoke-virtual {v4}, Les/zn0;->g1()Ljava/lang/String;

    move-result-object v19

    invoke-virtual {v4}, Les/zn0;->P0()Ljava/lang/String;

    move-result-object v20

    const/16 v21, 0x0

    invoke-virtual {v4}, Les/zn0;->U0()Ljava/lang/String;

    move-result-object v22

    move-object v12, v7

    invoke-direct/range {v12 .. v22}, Les/tj0;-><init>(JJJLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 24
    invoke-virtual {v0, v1, v7, v2, v3}, Les/qj0;->a(Landroid/content/Context;Les/tj0;ZLes/qj0$c;)V

    goto :goto_1

    :cond_9
    const/4 v5, 0x0

    .line 25
    :goto_1
    sget-object v1, Les/qj0;->f:Ljava/lang/String;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "tryShowInstallDialog isShow:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2, v6}, Les/bl0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V

    return v5
.end method

.method public a(Ljava/lang/String;)Z
    .locals 1

    .line 69
    iget-object v0, p0, Les/qj0;->c:Ljava/lang/String;

    invoke-static {v0, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    return p1
.end method

.method public b(Landroid/content/Context;)V
    .locals 7

    .line 5
    sget-object v0, Les/qj0;->f:Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "tryShowOpenAppDialog start"

    invoke-static {v0, v2, v1}, Les/bl0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V

    .line 6
    invoke-static {}, Les/lk0;->i()Lorg/json/JSONObject;

    move-result-object v0

    const-string v2, "disable_open_app_dialog"

    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v0

    const/4 v2, 0x1

    if-ne v0, v2, :cond_0

    return-void

    :cond_0
    if-eqz p1, :cond_5

    .line 7
    iget-object v0, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_1

    .line 8
    :cond_1
    sget-object v0, Les/qj0;->f:Ljava/lang/String;

    const-string v2, "tryShowOpenAppDialog next"

    invoke-static {v0, v2, v1}, Les/bl0;->a(Ljava/lang/String;Ljava/lang/String;Lorg/json/JSONObject;)V

    .line 9
    iget-object v0, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v0}, Ljava/util/concurrent/CopyOnWriteArrayList;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->listIterator(I)Ljava/util/ListIterator;

    move-result-object v0

    .line 10
    :cond_2
    :goto_0
    invoke-interface {v0}, Ljava/util/ListIterator;->hasPrevious()Z

    move-result v1

    if-eqz v1, :cond_5

    .line 11
    invoke-interface {v0}, Ljava/util/ListIterator;->previous()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/tj0;

    .line 12
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iget-wide v4, v1, Les/tj0;->h:J

    sub-long/2addr v2, v4

    const-wide/32 v4, 0x36ee80

    cmp-long v6, v2, v4

    if-lez v6, :cond_3

    .line 13
    iget-object p1, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->clear()V

    goto :goto_1

    .line 14
    :cond_3
    iget-object v2, v1, Les/tj0;->d:Ljava/lang/String;

    invoke-static {p1, v2}, Les/cl0;->c(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_4

    .line 15
    iget-object v2, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z

    goto :goto_0

    .line 16
    :cond_4
    invoke-direct {p0, p1, v1}, Les/qj0;->a(Landroid/content/Context;Les/tj0;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 17
    iget-object p1, p0, Les/qj0;->d:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {p1}, Ljava/util/concurrent/CopyOnWriteArrayList;->clear()V

    .line 18
    iget-object p1, p0, Les/qj0;->e:Les/rj0;

    const-string v0, "sp_name_installed_app"

    const-string v1, "key_installed_list"

    invoke-virtual {p1, v0, v1}, Les/rj0;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    :goto_1
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 2

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const-string v1, ""

    if-eqz v0, :cond_0

    .line 2
    iput-object v1, p0, Les/qj0;->c:Ljava/lang/String;

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Les/qj0;->c:Ljava/lang/String;

    invoke-static {v0, p1}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 4
    iput-object v1, p0, Les/qj0;->c:Ljava/lang/String;

    :cond_1
    :goto_0
    return-void
.end method
